package org.json;

import net.sf.json.JSONException;
import net.sf.json.JSONObject;

public class TestJson {

	public static void main(String[] args) throws JSONException {
		String jsonStr = "{\"name\":\"tiesheng\",\"age\":[22,33,44,55]}";
		String jsonStr1= "{'outer_id':'9195293333','pic_url':'http://img01.taobaocdn.com/bao/uploaded/i4/T1UmNLXhpnXXah2b75_054841.jpg','outer_num_id':'919529�й������ѧ��Ʒѡ(��౾�ߵ�ѧУ�Ŀƽ̲�)','match_pic_id':'0','match_pic_title':'','match_pic_url':'','match_score':'1','featnum':'0','user_strid':'68b36d0fdb72224b3bd5565fd8aed7c5'}";
		JSONObject json = JSONObject.fromObject(jsonStr);
		System.out.println(json.getString("name"));
		json = JSONObject.fromObject(jsonStr1);
		System.out.println(json.getString("outer_id"));
	}

}
